home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
lrpad
/
padfrm.frm
< prev
Wrap
Text File
|
1995-05-01
|
4KB
|
141 lines
VERSION 2.00
Begin Form PadFrm
BackColor = &H00C0C0C0&
Caption = "Pad Examples"
ClientHeight = 2265
ClientLeft = 1830
ClientTop = 1725
ClientWidth = 4830
Height = 2670
Left = 1770
LinkTopic = "Form1"
ScaleHeight = 2265
ScaleWidth = 4830
Top = 1380
Width = 4950
Begin CommandButton ExitBtn
Caption = "Exit"
Height = 315
Left = 3030
TabIndex = 6
Top = 1740
Width = 1245
End
Begin TextBox Text8
ForeColor = &H00FF0000&
Height = 285
Left = 1860
TabIndex = 3
TabStop = 0 'False
Top = 1290
Width = 2595
End
Begin TextBox Text7
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 225
Left = 1110
MousePointer = 1 'Arrow
TabIndex = 10
TabStop = 0 'False
Text = "Result :"
Top = 1350
Width = 765
End
Begin TextBox Text6
Height = 285
Left = 1860
TabIndex = 2
Top = 930
Width = 705
End
Begin TextBox Text5
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 225
Left = 780
MousePointer = 1 'Arrow
TabIndex = 9
TabStop = 0 'False
Text = "Fill Length :"
Top = 960
Width = 1095
End
Begin CommandButton RPADBtn
Caption = "RPAD"
Height = 315
Left = 1740
TabIndex = 5
Top = 1740
Width = 1245
End
Begin CommandButton LPADBtn
Caption = "LPAD"
Height = 315
Left = 450
TabIndex = 4
Top = 1740
Width = 1245
End
Begin TextBox Text4
Height = 285
Left = 1860
MaxLength = 1
TabIndex = 1
Top = 570
Width = 705
End
Begin TextBox Text3
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 225
Left = 570
MousePointer = 1 'Arrow
TabIndex = 8
TabStop = 0 'False
Text = "Fill Character :"
Top = 630
Width = 1335
End
Begin TextBox Text1
Height = 285
Left = 1860
TabIndex = 0
Top = 210
Width = 2595
End
Begin TextBox Text2
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 225
Left = 300
MousePointer = 1 'Arrow
TabIndex = 7
TabStop = 0 'False
Text = "Beginning String :"
Top = 240
Width = 1605
End
End
Sub ExitBtn_Click ()
End
End Sub
Sub LPADBtn_Click ()
String1 = Text1.Text
Char1 = Text4.Text
Length% = Text6.Text
x = LPAD(String1, Char1, Length%)
Text8.Text = Result
End Sub
Sub RPADBtn_Click ()
String1 = Text1.Text
Char1 = Text4.Text
Length% = Text6.Text
x = RPAD(String1, Char1, Length%)
Text8.Text = Result
End Sub